import type { AppProps } from 'next/app'
import React, { useEffect } from 'react'
import '../styles/globals.scss'
import 'antd/dist/antd.css'

if (typeof window === 'undefined') {
  React.useLayoutEffect = React.useEffect
}

function MyApp({ Component, pageProps }: AppProps) {
  return <Component {...pageProps} />;
}

export default MyApp;
